﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Scripting.APIUpdating.MovedFromAttributeData
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

#nullable disable
namespace UnityEngine.Scripting.APIUpdating
{
  internal struct MovedFromAttributeData
  {
    public string className;
    public string nameSpace;
    public string assembly;
    public bool classHasChanged;
    public bool nameSpaceHasChanged;
    public bool assemblyHasChanged;
    public bool autoUdpateAPI;

    public void Set(
      bool autoUpdateAPI,
      string sourceNamespace = null,
      string sourceAssembly = null,
      string sourceClassName = null)
    {
      this.className = sourceClassName;
      this.classHasChanged = this.className != null;
      this.nameSpace = sourceNamespace;
      this.nameSpaceHasChanged = this.nameSpace != null;
      this.assembly = sourceAssembly;
      this.assemblyHasChanged = this.assembly != null;
      this.autoUdpateAPI = autoUpdateAPI;
    }
  }
}
